// const APIV1 = '/api/v1'
const APIV2 = '/api/v2'
const APISFM = '/api/sfm'
const APIHC = '/api/hc'
const APIV3 = '/api/v3'
const APIVServer = '/api/service'

module.exports = {
  name: 'AntD Admin',
  prefix: 'antdAdmin',
  footerText: '© 2017-2020 BSH, All Rights Reserved.',
  logo: '/logo.svg',
  iconFontCSS: '/iconfont.css',
  iconFontJS: '/iconfont.js',
  optionalUrl: 'https://s3.cn-north-1.amazonaws.com.cn/rgc-solution-server/WX_HC_Program',
  CORS: [],
  openPages: ['/chzu/login'],
  apiPrefix: '/api/v2',
  version:'3.0.6',
  // APIV1,
  APIV2,
  imageUrl: 'https://s3.cn-north-1.amazonaws.com.cn/rgc-solution-server/WX_HC_Program',
  api: {
    //web保修接口代理
    //用户接口
    //用户注册
    userRegister:`${APIVServer}/user/register`,
    //用户登录
    userLogin:`${APIVServer}/user/login`,
    //用户注销
    userLogout:`${APIVServer}/user/logout`,
    //管理员注册操作员账户
    OpRegister:`${APIVServer}/user/c_register`,
    //查询个人信息
    userDetail:`${APIVServer}/user/details`,
    //管理员查看用户列表
    userList:`${APIVServer}/user/list`,
    //用户个人信息修改
    userModify:`${APIVServer}/user/modify`,
    //批量删除用户
    deleteUser:`${APIVServer}/user/delete`,
    //管理员查看用户信息
    m_details:`${APIVServer}/user/m_details`,
    //管理员修改用户信息
    m_modify:`${APIVServer}/user/m_modify`,
    

    //学校管理
    schoolList:`${APIVServer}/schoolList`,
    //创建学校
    schoolAdd: `${APIVServer}/schoolAdd`,
    //删除学校
    deleteSchool:`${APIVServer}/deleteSchool`,
    //修改学校名称
    updateSchool:`${APIVServer}/updateSchool`,
    //查询学校下的所有学院
    departmentList:`${APIVServer}/departmentList`,
    //创建院系
    depAdd:`${APIVServer}/depAdd`,
    //删除院系
    deleteDepartment:`${APIVServer}/deleteDepartment`,
    //修改院系名称
    updateDepartment:`${APIVServer}/updateDepartment`,
    //查询这个学院下面的所有专业
    specialtyList:`${APIVServer}/specialtyList`,
    //创建专业
    speAdd:`${APIVServer}/speAdd`,
    //删除专业
    deleteSpe:`${APIVServer}/deleteSpe`,
    //修改专业名称
    updateSpe:`${APIVServer}/updateSpe`,

    //faq管理
    //添加问题
    addQuestionUrl:`${APIVServer}/faq/addQuestion`,
    //批量删除问题
    deleteQuestionUrl:`${APIVServer}/faq/deleteQuestion`,
    //查询所有的errorcode
    findErrorCode:`${APIVServer}/faq/findErrorCode`,
    //查询问题详情
    questionDetail:`${APIVServer}/faq/findQuestionById`,
    //分页查询
    pageFaqList:`${APIVServer}/faq/pageFaqList`,
    //修改问题
    updateQuestionUrl:`${APIVServer}/faq/updateQuestion`,

    //维修管理相关接口
    //普通用户新增报修
    add:`${APIVServer}/repair/add`,
    //操作员同意报修
    allow:`${APIVServer}/repair/allow`,
    //完成列表
    endList:`${APIVServer}/repair/endList`,
    //正在处理列表
    ingList:`${APIVServer}/repair/ingList`,
    //待报修列表
    notreatList:`${APIVServer}/repair/notreatList`,
    //操作员拒绝报修
    reject:`${APIVServer}/repair/reject`,
    //操作输入结果
    comment:`${APIVServer}/repair/comment`,
    //查询详情
    repairDetauls: `${APIVServer}/repair/details`,

    //通知相关接口
    //添加通知
    addNotice: `${APIVServer}/republic/add`,
    //批量删除通知
    deleteNotice: `${APIVServer}/republic/delete`,
    //查看通知详情
    findNotice:`${APIVServer}/republic/find`,
    //分页查询
    pageNotice:`${APIVServer}/republic/pageList`,
    //修改通知
    updateNotice:`${APIVServer}/republic/update`,
    //图片上传的接口
    uploadPic:`${APIVServer}/fileUpload/picture`,
  },
}

